package com.hileto.inf.actions.methods.m;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.hileto.inf.actions.methods.BaseMethod;
import com.hileto.inf.actions.methods.params.SysParam;
import com.hileto.inf.actions.methods.params.UserParam;
import com.hileto.inf.modules.user.TestService;
import com.hileto.inf.utils.JsonHelp;

@Repository
public class TestMethod extends BaseMethod<UserParam>{
	
	@Autowired
	private TestService testService;

	protected String getMethodName() {
		return "test.test";
	}

	@Override
	public String doHttpProcess(SysParam sysParam, HttpServletRequest request) {
		testService.update();
		System.out.println("test!!");
		return JsonHelp.object2Json("hello ,this is the test!["+getParamBean(request)+"]");
	}

}
